package java面向对象.多态;

public class text {
    public static void main(String[] args) {
    show(new Cat());
    show(new Dog());


    }
    public static void show(Animal animal){
        animal.eat();
        animal.shout();
    }
}
